﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Microsoft.Samples.ServiceHosting.StorageClient;

namespace Dtyo_WebRole
{
    public class Department : TableStorageEntity
    {
        public Department() {
            PartitionKey = DateTime.UtcNow.ToString("MMddyyyy");
            // Row key allows sorting, so we make sure the rows come back in time order.
            RowKey = string.Format("{0:10}_{1}", DateTime.MaxValue.Ticks - DateTime.Now.Ticks, Guid.NewGuid());
        }
        public int Id { get; set; }
        public string Name { get; set; }
        public String Description { get; set; }

    }
}